package br.com.velp.sudecap.daoimpl;

import br.com.velp.sudecap.comum.SpringConstants;
import br.com.velp.sudecap.dao.EmpreendimentoDAO;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Repository;

/**
 *
 * @author Eduardo
 */
@Repository("empreendimentoDAO")
@Lazy(SpringConstants.LAZY_BEANS)
public class EmpreendimentoDAOImpl implements EmpreendimentoDAO {
    
    @Autowired
    private SessionFactory sessionFactory;
    
    public Session getSession() {
        return this.sessionFactory.getCurrentSession();
    }
    
}
